﻿@if (Request.IsAuthenticated) 
{
    using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = ".form-inline" }))
    {
              @Html.AntiForgeryToken()
              <div class="form-group">
                  Здравствуйте, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })
                  [<a href="javascript:document.getElementById('logoutForm').submit()" class="">Выход</a>]
              </div>
    }

}
